/* tools.c */

#include "tools.h"

Uint32 TimeLeft(void)
{
    static Uint32 next_time = 0;
    Uint32 now, ret = 0;
    now = SDL_GetTicks();
    if (next_time <= now)
	{
        next_time = now + TICK_INTERVAL;
        return(ret);
    }
    ret = next_time - now;
    return(ret);
}

